// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

//引入mint-ui 
import '../node_modules/mint-ui/lib/style.min.css'
import { Header ,Swipe, SwipeItem, Button } from 'mint-ui'
Vue.component(Header.name, Header);
Vue.component(Button.name, Button);
//轮播图组件
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

//引入mui
import './assets/mui/css/mui.min.css'
import './assets/mui/css/icons-extra.css'

// vue-resouce引入
import VueResource from 'vue-resource'
Vue.use(VueResource)

// 配置请求地址
Vue.http.options.root='http://vue.studyit.io'

//引入时间格式化库
import moment from 'moment'
//自定义全局的时间过滤器
Vue.filter('filtertime',(item,parms="YYYY-MM-DD HH:mm:ss") =>{
  return moment(item).format(parms)
})


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
